<?php

namespace services\demo\service;

use \core\ServiceInvoke;

/**
 * 示例服务
 * @author kevin
 *
 */
class DemoHuang {
	
	public function execute($trace_id, $current_trace_span_id, $request) {
		$request_params = get_status_code('0'); 
		$request_params ["message"] = '';
		if (isset ( $request ["huangid"] )) {
			$request_params ["huangname"] = 'dangdang' . rand(1,100);
		}else{
			$request_params ["huangname"] = 'not found';
		}
		$resp = ServiceInvoke::invokeSoaService('com/dang/wireless', 'subdemo1', '1.0',
				$trace_id, $current_trace_span_id, null);
		$resp = ServiceInvoke::invokeSoaService('com/dang/wireless', 'subdemo2', '1.0',
				$trace_id, $current_trace_span_id, null);
		return array('statusCode'=>'0','statusDesc'=>'','data'=>$request_params);
	}
	
}

